package com.yourenbang.lingyun.transaction.web.service.impl.pay;

import com.yourenbang.lingyun.core.message.Result;
import com.yourenbang.lingyun.transaction.web.service.pay.PayService;
import com.yourenbang.transaction.api.model.dto.pay.TradeQueryDTO;
import com.yourenbang.transaction.api.service.pay.PayApiService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class PayApiServiceImpl implements PayApiService {

    @Autowired
    private PayService payService;

    /**
     * 查询是否支付成功
     */
    @Override
    public Result<Boolean> tradeQuery(TradeQueryDTO queryDTO) {
        return Result.builder().success(payService.tradeQuery(queryDTO));
    }


}
